package org.itboys.mobile.dto.order;

import org.itboys.mobile.dto.common.MobileBaseDto;

import java.math.BigDecimal;

/**
 * 作者：jiangxiong
 * 日期：2016年11月25日
 * 联系方式 ：empty90911@126.com
 * 描述：农厨_订单_商品_实体
 */
public class MdlOrderProductDto extends MobileBaseDto {
        private BigDecimal price;//零售价或销售价
        private String name;//产品名称
        private String number;//产品编号
        private String image;//产品图片
        private String standard;//规格

        private Integer num;//数量
        private Integer type;//1,商城，2，积分，3采购

        public MdlOrderProductDto() {
        }


        public MdlOrderProductDto(long id, String createTime, String createDate, BigDecimal price, String name, String number, String image, String standard, Integer num, Integer type) {
                super(id, createTime, createDate);
                this.price = price;
                this.name = name;
                this.number = number;
                this.image=image;
                this.standard = standard;
                this.num = num;
                this.type = type;
        }

        public BigDecimal getPrice() {
                return price;
        }

        public void setPrice(BigDecimal price) {
                this.price = price;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String getNumber() {
                return number;
        }

        public void setNumber(String number) {
                this.number = number;
        }

        public String getImage() {
                return image;
        }

        public void setImage(String image) {
                this.image = image;
        }

        public String getStandard() {
                return standard;
        }

        public void setStandard(String standard) {
                this.standard = standard;
        }

        public Integer getNum() {
                return num;
        }

        public void setNum(Integer num) {
                this.num = num;
        }

        public Integer getType() {
                return type;
        }

        public void setType(Integer type) {
                this.type = type;
        }

        public String  getTypeStr(){
                String typeStr= "";
                if(type==null)return typeStr;

                switch (type) {
                        case 1:
                                typeStr="商城商品";
                                break;
                        case 2:
                                typeStr="积分商品";
                                break;
                        case 3:
                                typeStr="采购商品";
                                break;
                        default:
                                break;
                }
                return typeStr;
        }
}
